<template>
  <div class="loading_container" v-show="visible">
      <div class="loading_pic">
          <img src="../../assets/loading.gif" alt="">
      </div>
  </div>
</template>

<script>
export default {
    data() {
        return {
            visible: false
        }
    },
    methods: {
        close() {
            this.visible = false;
        }
    }
}
</script>

<style scoped>
.loading_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
    z-index: 9999;
}
.loading_pic {
    width: 50%;
    position: fixed;
    top: 40%;
    left: 25%;
}
.loading_pic img {
    width: 50vw;
}
</style>